﻿@model IankerProj.Models.Sanpham_thietbi
    @using (@Html.BeginForm("Suasanpham_thietbi", "Admin", FormMethod.Post))
    {

        <h1>Sửa sản phẩm</h1>

        <div class="form-group">
            <label>Mã sản phẩm</label>
            <input class="form-control" name="ma" value="@Model.id">
        </div>


        <div class="form-group">
            <label>ID sản phẩm</label>
            <select id="Select1" class="form-control" name="idsp">
                <option value="@Model.idsanpham">@Model.idsanpham</option>
                @foreach (var item in ViewBag.idsp)
                {
                    <option value="@item.id">@item.ten</option>
                }

            </select>

        </div>
        <div class="form-group">
            <label>ID thiết bị</label>
            <select id="Select1" class="form-control" name="idtb">
                <option value="@Model.idthietbi">@Model.idthietbi</option>
                @foreach (var item in ViewBag.idtb)
                {
                    <option value="@item.id">@item.ten</option>
                }

            </select>

        </div>


        <button type="submit" class="btn btn-default">Sửa</button>
    }
